Mollie\WooCommerce\Payment\PaymentService C

Total Complexity 101
Dependencies 17
Dependents 7
Total lines 585
Lines of code 353
Logical lines of code 251
Comment lines 165
Methods 28
Properties 10

Methods 28

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
A
42 15 43
processAsMolliePayment()
A
53 11 18
correctSurchargeFee()
A
47 8 36
updateOrderStatus()
A
54 8 21
processPayment()
A
47 7 34
paymentTypeBasedOnProducts()
S
55 5 19
processPaymentForMollie()
S
56 5 17
processSubscriptionSwitch()
S
57 4 16
processValidMandate()
S
57 3 16
needsSubscriptionSwitch()
S
76 4 3
updatePaymentStatusForDelayedMethods()
S
65 4 8
paymentTypeBasedOnGateway()
S
63 4 10
saveSubscriptionMandateData()
S
58 3 14
reportPaymentCreationFailure()
S
62 3 10
handleMollieOutage()
S
68 2 7
reportPaymentSuccess()
S
62 2 10
handleMollieFraudRejection()
S
68 2 7
__construct()
S
63 1 11
subsSwitchCompleted()
S
68 1 6
noValidMandateForSubsSwitchFailure()
S
71 1 5
setGateway()
S
81 1 3
saveMollieInfo()
S
70 1 6
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
75 1 4
orderAddFee()
S
66 1 9
paymentObjectFailure()
S
75 1 4
processInitialOrderStatus()
S
71 1 5
removeOrderFee()
S
72 1 6